#pragma once
#include "stdafx.h"
#include <iostream>
#include <tinyxml.h>
#include "CBaseDef.h"

#define NULLSTRING ""

using namespace std;
class _declspec(dllexport)CIckdXml
{
public:
	CIckdXml(void);
	~CIckdXml(void);
	
	CIckdXml *GetXmler();
	bool LoadXmlFile(vector<CCompanyItem > &paramComp,const string &filePath,TiXmlEncoding encoding = TIXML_ENCODING_UNKNOWN);
	bool LoadXmlDocument(const string &xmlDocument,TiXmlEncoding encoding = TIXML_ENCODING_UNKNOWN);

	vector<CCompanyItem > GetAllCompany();

	CListDataItem GetOneceListData();
	vector<CListDataItem > GetListDatas();
private:
	TiXmlDocument *m_tiny;
	TiXmlElement *m_xmlElement;
	static CIckdXml *s_HPXmler;
};
